﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="MyLearningPlanner._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div id="divInput">
            <label for="txtPlanTitle">
                Title</label><asp:TextBox ID="txtPlanTitle" runat="server"></asp:TextBox>
            <br />
            <label for="txtContent">
                Content</label><asp:TextBox ID="txtContent" TextMode="MultiLine" runat="server"></asp:TextBox>
            <br />
            <label for="txtEstimateTime">
                EstimateTime</label><asp:TextBox ID="txtEstimateTime" runat="server"></asp:TextBox>
            <br />
            <asp:Button ID="btnPost" runat="server" Text="Post" OnClick="Post" />
        </div>
        <asp:Repeater ID="rpt" runat="server">
            <ItemTemplate>
                <div>
                    <h3>
                        <%#Eval("Title")%>
                    </h3>
                    <span>
                        <%#Eval("StartTime")%>-<%#Eval("EstimateEndTime") %></span>
                    <p>
                        <%#CutStr(Eval("Description"),10)%>
                    </p>
                </div>
            </ItemTemplate>
        </asp:Repeater>
        <p>
            <asp:Literal ID="ltlInfo" runat="server"></asp:Literal>
        </p>
    </div>
    </form>
</body>
</html>
